package com.ruoyi.system.repository.service;

import com.ruoyi.system.repository.domain.MiniOrder;
import com.ruoyi.system.repository.domain.Order;
import com.ruoyi.system.repository.domain.Ordertable;
import org.apache.ibatis.annotations.Param;

import java.text.ParseException;
import java.util.List;



/**
 * 订单Service接口
 *
 * @author qiang
 * @date 2021-01-01
 */
public interface IOrdertableService {
    /**
     * 查询订单
     *
     * @param orderid 订单ID
     * @return 订单
     */
    public Ordertable selectOrdertableById(String orderid);

    /**
     * 查询订单列表
     *
     * @param ordertable 订单
     * @return 订单集合
     */
    public List<Ordertable> selectOrdertableList(Ordertable ordertable);

    /**
     * 新增订单
     *
     * @param ordertable 订单
     * @return 结果
     */
    public int insertOrdertable(Ordertable ordertable);

    /**
     * 修改订单
     *
     * @param ordertable 订单
     * @return 结果
     */
    public int updateOrdertable(Ordertable ordertable);

    /**
     * 批量删除订单
     *
     * @param orderids 需要删除的订单ID
     * @return 结果
     */
    public int deleteOrdertableByIds(String[] orderids);

    /**
     * 删除订单信息
     *
     * @param orderid 订单ID
     * @return 结果
     */
    public int deleteOrdertableById(String orderid);

    List<Order> findAllOrderByName(String userName);

    List<MiniOrder> findAllMiniOrder(String userName);

    List<MiniOrder> findTodayMiniOrder(String userName);

    Order findOneOrder(String userName, int orderId);

    boolean addOneOrder(Order order);

    boolean addOneOrderByStr(String userName,String drinkStr);
}
